package org.apache.solr.ocean;

import org.apache.solr.common.SolrDocument;
import org.apache.solr.ocean.util.Constants;

public class OceanDocument extends SolrDocument {
  
  public OceanDocument() {
  }

  public void setDocumentId(Long documentId) {
    setField(Constants.DOCUMENTID, documentId);
  }
  
  public Long getDocumentId() {
    return (Long)getFieldValue(Constants.DOCUMENTID);
  }
  
  public Long getSnapshotId() {
    return (Long)getFieldValue(Constants.SNAPSHOTID);
  }

  public Long getId() {
    return (Long)getFieldValue(Constants.ID);
  }

  public void setSchemaVersion(Long schemaVersion) {
    setField(Constants.SCHEMAVERSION, schemaVersion);
  }

  public void setSnapshotId(Long snapshotID) {
    setField(Constants.SNAPSHOTID, snapshotID);
  }

  public void setId(Long id) {
    setField(Constants.ID, id);
  }
}
